package org.tech4j.springboot.starter.ext.aware;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.lang.NonNull;
import org.tech4j.springboot.starter.ext.utils.SpringUtils;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/4 09:57
 **/
public class ExtApplicationContextAware implements ApplicationContextAware {

    @Override
    public void setApplicationContext(@NonNull ApplicationContext applicationContext) throws BeansException {
        SpringUtils.getInstance().setApplicationContext(applicationContext);
    }
}
